import { request } from '@/utils';
import { api } from '@/config';

const {
  goods: {
    releasePageList,

    releaseOptPageListOpt,
    releaseOptShelve,
    releaseOptPublish,
    releaseOptQtyUpdate,
  }
} = api;
const fetch = {
  fetchList(data: any) {
    return request({
      url: releasePageList,
      data
    });
  },

  fetchOptList(data: any) {
    return request({
      url: releaseOptPageListOpt,
      data
    });
  },

  fetchShelve(data: any) {
    return request({
      url: releaseOptShelve,
      data
    });
  },

  fetchPublish(data: any) {
    return request({
      url: releaseOptPublish,
      data
    });
  },

  fetchUpdateQty(data: any) {
    return request({
      url: releaseOptQtyUpdate,
      data
    });
  },
};
export default fetch;